package com.like.fragment;

import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

import com.like.adapter.DeleteAdapter;
import com.like.fragment.BaseFragment;
import com.like.hospitalworld.R;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

/**
 * Created by MGC13 on 2016/5/31.
 */
@ContentView(R.layout.fragment_delete)
public class OfflineDeleteFragment extends BaseFragment {
    @ViewInject(R.id.delete_list)
    private ListView mOfflineList;

    private OnDoneClickListener doneClickListener;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onCreateView() {
        super.onCreateView();
        doneClickListener = (OnDoneClickListener) getActivity();
        DeleteAdapter mOfflineAdapter = new DeleteAdapter();
        mOfflineList.setAdapter(mOfflineAdapter);
    }

    @Event(R.id.done_ll)
    private void doneClick(View v) {
        doneClickListener.doneClick();
    }

    public interface OnDoneClickListener{
        void doneClick();
    }
}